<?php


namespace App\Model;


/**
 * App\Model\StoreCopy
 *
 * @property int $id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property string $name 门店名称
 * @property string $province 省
 * @property string $city 市
 * @property string $area 区（县）
 * @property string $phone 电话
 * @property string $detail 详细地址
 * @property int $order_id 订单id
 * @property-read mixed $all_address
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereArea($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereCity($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereDetail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereProvince($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Model\StoreCopy whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class StoreCopy extends Base
{

    protected $table='store_copy';

    protected $fillable=['name','province','city','area','phone','detail','order_id'];

    protected $appends=['all_address'];


    function getAllAddressAttribute()
    {

        return $this->attributes['province'].$this->attributes['city'].$this->attributes['area'].$this->attributes['detail'];
    }

}
